package com.a2j.beans.car.sub_brand.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * Author: bzb
 * Data: 2021/11/17 22:42
 * Desc: 子品牌查询入参VO
 */
@Data
@ApiModel(description = "子品牌分页查询入参")
public class CarSubBrandRequestVO {

    @ApiModelProperty(value = "页", notes = "入参指定查询第几页", required = true, dataType = "int", example = "1")
    private Integer page; // 入参指定查询第几页, 默认值: 1

    @ApiModelProperty(value = "行", notes = "入参指定查询多少行", dataType = "int", example = "10")
    private Integer rows; // 入参指定查询多少行, 默认值: 10

    @ApiModelProperty(value = "品牌名称")
    private String brandName; // 品牌名称

    @ApiModelProperty(value = "子品牌名称")
    private String subBrandName; // 子品牌名称

    @ApiModelProperty(value = "货源渠道 (1.平行进口 2.中规进口 3.国产)")
    private Integer sourceType; // 货源渠道 1.平行进口 2.中规进口 3.国产

    @ApiModelProperty(value = "开关状态 (0:关 1:开)")
    private Integer enable; // 开关

    // 格式化时间
    @ApiModelProperty(value = "创建时间 (YYYY-MM-dd HH:mm:ss)")
    @JsonFormat(pattern = "YYYY-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "YYYY-MM-dd HH:mm:ss") // 处理web端提交参数的bug
    private Date createTime; // 创建时间
}
